﻿#pragma once
#include "ObjectTreeView.h"
#include <QScopedPointer>
#include <QPointer>

class HierarchySearchView : public ObjectTreeView {
    Q_OBJECT
    struct HierarchySearchViewData;
    QScopedPointer<HierarchySearchViewData> d;

public:
    ~HierarchySearchView();
    explicit HierarchySearchView(QWidget *parent = nullptr);
public:
    int searchObject(const QString &keywords, const QString &className = QString());

private:
    int innerSearchItem(QStandardItem* item, const QString& keywords, const QString& className);
};
